package com.time.thread.daemon;

/**
 * @program: tes
 * @description:  没看懂
 * @author: xuejingjing
 * @create: 2021-10-21 10:26
 **/
public class DaemonMain {
    public static void main(String[] args) {
        DaemonThread daemonThread = new DaemonThread();
        daemonThread.setDaemon(true);
        daemonThread.start();
        try {
            Thread.sleep(6000);
            System.out.println("我离开thread对象也不再打印了,也就是停止了！");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
